package com.nangong.example.service;

import com.nangong.example.model.Member;
import com.nangong.example.dao.MemberMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberServiceImpl implements MemberService {

    @Autowired
    private MemberMapper memberMapper;

    @Override
    public int insert(Member member) {
        return memberMapper.insert(member);
    }

    @Override
    public int save(Member member) {
        return 0;
    }

    @Override
    public List<Member> selectAll() {
        return memberMapper.selectAll();
    }

    @Override
    public String getToken(String appId) {
        return null;
    }
}
